package com.theyeasy.dvmini.dao;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.theyeasy.dvmini.model.Chatlog;
import com.theyeasy.dvmini.util.MyMapper;
import com.theyeasy.dvmini.vo.ChatLog_DistinctFansIdVO;
import com.theyeasy.dvmini.vo.Chatlog_Vo;

public interface ChatlogDao extends MyMapper<Chatlog> {

	List<Chatlog_Vo> getChatlogList(int page, int pagesize, @Param("replytype") Integer replytype,
			@Param("date1") String date1, @Param("date2") String date2, @Param("keyword") String keyword);

	Integer getChatlogCount(@Param("replytype") Integer replytype, @Param("date1") String date1,
			@Param("date2") String date2, @Param("keyword") String keyword);

	List<Chatlog_Vo> getChatLogListBySalesId(int page, int pagesize, @Param("ids") List<Integer> ids,
			@Param("fansid") Integer fansid);

	Integer getChatlogCountBySalesId(@Param("salesid") Integer salesid, @Param("fansid") Integer fansid);
	
	Set<Integer> getChatFansIdBySalesId(@Param("salesid") Integer salesid);
	
	List<ChatLog_DistinctFansIdVO> getChatListDistinctFansIdIn(@Param("ids") List<Integer> ids,@Param("salesid") Integer salesid);
}
